package fx;

public class TestGeneric2 {
    public static void main(String[] args) {
       Integer[]a = {1,3,4,6,7,9,2,5,8,10};
        print(a);
        String[]b={"老大","老二","老三","老四","老五","老六","老幺"};
        print(b);
        Double[]c = {3.14,99.9,8.488,999.9999};
//        print(c);
    }
//    private static <E> void print(E[]e){
//        for(E d :e){
//            System.out.println(d);
//        }
//    }
    private static void print(Integer[]a){
        for(int i=0;i<a.length;i++){
            System.out.println(a[i]);
        }
    }
    private static void print(String[]b){
        for(String d:b){
            System.out.println(d);
        }
    }

}
